package com.superlight.designer.wrapper;

import com.superlight.designer.comm.BaseEntityWrapper;
import com.superlight.designer.entity.Plan;
import com.superlight.designer.entity.vo.PlanVO;
import org.springframework.beans.BeanUtils;

/**
 * @Classname PlanWrapper
 * @Description TODO
 * @Date 2021/5/10 11:05
 * @Created by leishihua
 */
public class PlanWrapper extends BaseEntityWrapper<Plan, PlanVO> {

        public static PlanWrapper build() {
            return new PlanWrapper();
        }

        @Override
        public PlanVO entityVO(Plan plan){
            PlanVO target = new PlanVO();
            BeanUtils.copyProperties(plan,target);
            return target;
        }

}
